﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;

namespace EkStudio.com.bean.xml.WorkFlow.Node
{
    /// <summary>
    /// javascript表达式
    /// </summary>
    public class WflowExpressionElement : BillObjectInterface
    {
        private string key = "";
        private string content = "";

        [Xml]
        public string Key
        {
            get { return key; }
            set { key = value; }
        }
        [XmlElement]
        public string Content
        {
            get { return content; }
            set { content = value; }
        }

        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;   
            }
            set
            {
                
            }
        }

        public object Clone()
        {
            WflowExpressionElement clone = new WflowExpressionElement();
            clone.Key = key;
            clone.Content = content;
            return clone;
        }

        public override string ToString()
        {
            return key;
        }
    }
}
